﻿




using System;
using Hotpot.Infrastructure;
using Hotpot.Models;
using Hotpot.Modules.CMS.Models;

namespace Hotpot.Modules.CMS.Extensions
{
    public static class PageExtensions
    {
        public static Page Apply(this Page page, PageInput input, Guid siteID, User creator, EntityState state)
        {
            return new Page(page.ID, new SiteSmall(siteID), input.TemplateName, input.Title, input.Description, input.Slug, input.Published);
        }
    }
}
